/* You can add global styles to this file, and also import other style files */
@import "./assets/fonts.less";

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

.header-b {
  .ant-breadcrumb {
    .ant-breadcrumb-separator {
      color: #acabab;
    }
  }
}

.ant-layout-sider-children {
  position: relative;
  padding-bottom: 48px;
  .trigger {
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -14px;
    z-index: 1000;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }
}

.ant-menu-dark {
  & > .ant-menu-item {
    border-top: 1px solid #2e363c;
    border-bottom: 1px solid #0c0c0d;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 12px !important;
    white-space: normal;
    line-height: 21px;
    outline: none!important;
    & > span {
      display: flex;
      align-items: center;
      i {
        width: 30px;
        text-align: center;
        line-height: 70px;
        font-size: 30px;
        margin-right: 14px;
        transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
      }
      .nav-text {
        flex: 1;
        max-height: 42px;
        overflow: hidden;
      }
    }

  }
  & > .ant-menu-submenu {
    border-top: 1px solid #2e363c;
    border-bottom: 1px solid #0c0c0d;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    .ant-menu-submenu-title {
      margin-top: 0;
      margin-bottom: 0;
      padding-left: 12px !important;
      white-space: normal;
      line-height: 21px;
      & > span {
        display: flex;
        align-items: center;
        i {
          width: 30px;
          text-align: center;
          line-height: 70px;
          font-size: 30px;
          margin-right: 14px;
          transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        }
        .nav-text {
          flex: 1;
          max-height: 42px;
          overflow: hidden;
        }
      }

    }
    .ant-menu-item{
      height: auto;
      white-space: normal;
      line-height: 22px;
      padding: 11px 16px;
      &:focus{
        outline: none;
      }
    }
  }

}

.ant-menu-inline-collapsed {
  & > .ant-menu-item, & > .ant-menu-submenu .ant-menu-submenu-title {
    padding-left: 25px !important;
    padding-right: 25px !important;
    i {
      margin-right: 0 !important;
    }
  }
}

.cdk-overlay-container .ant-menu-vertical .ant-menu-item {
  height: 40px;
  line-height: 40px;
}

nz-sider.ant-layout-sider-collapsed + .ant-layout {
  .fixed-tab-wrap {
    left: 80px;
  }
}

.has-sub-side .sub-side ul li{
  &:focus{
    outline: none;
  }
}

.layout {
  height: 100%;
  background-color: #eef1f5;
}

.ant-layout-header {
  padding: 0;
  height: 105px;
  background-color: #14222b;
  line-height: normal;
  overflow: hidden;
  .header-a {
    height: 70px;
    background: #0b3651 url(./assets/images/header-a-bg.jpg) right 0 no-repeat;
    overflow: hidden;
  }
  .logo {
    float: left;
    margin-top: 8px;
    margin-left: 12px;
    img {
      display: block;
    }
  }
  .head-disc {
    font-family: "Colaborate";
    float: left;
    margin-left: 93px;
    margin-top: 30px;
    line-height: 1;
    font-size: 30px;
    color: #ffffff;
  }
  .header-b {
    height: 36px;
    .header-b-bot {
      float: left;
      width: 268px;
      padding-left: 12px;
      margin-top: 2px;
      font-size: 12px;
      color: #acabab;
      line-height: 16px;
    }
    .ant-breadcrumb {
      float: left;
      color: #acabab;
      line-height: 35px;
      font-size: 14px;
      nz-breadcrumb-item:last-child {
        color: #ffffff;
      }
      .ag_home {
        position: relative;
        top: -2px;
        margin-right: 8px;
        font-size: 18px;
        vertical-align: middle;
      }
      a {
        color: #acabab;
      }
    }
    .right-menu {
      float: right;
      padding-right: 5px;
      .ant-btn {
        margin-right: 20px;
        background-color: transparent;
        border: 0;
        i {
          color: #acabab;
          &.ag_power_settings_new {
            color: #be4235;
            font-weight: bold;
          }
        }
      }
    }

  }

}

.user-media {
  overflow: hidden;
  .user-hd {
    float: left;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    img {
      display: block;
      width: 48px;
      height: 48px;
    }
  }
  .user-bd {
    overflow: hidden;
    h4 {
      line-height: 1;
      font-size: 14px;
      font-weight: normal;
      margin-top: 2px;
      margin-bottom: 10px;
      a {
        color: #1b1c1c;
      }
    }
    p {
      font-size: 12px;
    }
  }
}

.user-controls {
  line-height: normal;
  .ant-btn {
    & + .ant-btn {
      margin-left: 10px;
    }
  }
}

.ant-layout-content {
  background: #fff;
  padding: 24px;
  min-height: 280px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
}

.fixed-tab-wrap {
  background-color: #ffffff;
  position: fixed;
  top: 105px;
  left: 250px;
  right: 0;
  padding: 0 12px;
  list-style: none;
  height: 46px;
  line-height: 46px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  transition: left 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 1000;
  li {
    float: left;
    padding: 0 12px;
    font-size: 14px;
    a {
      position: relative;
      display: block;
      color: #1c1c1c;
      text-decoration: none;
    }
    &.active {
      a {
        &:after {
          position: absolute;
          left: 0;
          bottom: 0;
          right: 0;
          content: '';
          border-bottom: 3px solid #D8534F;
        }
      }
    }
  }
  & + .ant-layout-content {
    margin-top: 46px;
    min-height: inherit;
    height: auto;
  }
}

.ant-table-thead > tr > th {
  white-space: nowrap;
}

.table-control-wrap {
  margin-bottom: 20px;
}

nz-form-control {
  flex: 1;
}
.ant-input-number{
  width: 100%;
}
.ant-advanced-search-form {
  padding: 24px 24px 0;
  background: #f6f6f6;
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
  nz-select{
    min-width: 170px;
  }
}
.cdk-overlay-pane{
  // min-width: 300px;
}
.control-area {
  line-height: 40px;
  button,a{
    margin-left: 12px;
  }
}

.has-sub-side{
  .sub-side {
    margin-right: 20px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 12px 20px 15px;
    ul {
      border-right: 0;
      li {
        height: 35px;
        line-height: 35px;
        i {
          font-size: inherit;
          margin-right: 5px;
        }
      }
    }
  }
}


.table-control-wrap {
  .ant-btn {
    & + .ant-btn {
      margin-left: 10px;
    }
  }
}

.ant-form-item-label label:after{
  content: '';
}
.ant-calendar-picker{
  display: block;
}

.alarm-chart{
  .ngx-charts-outer{
    overflow: hidden;
  }
}
tr{
  td:last-child.ant-table-td-right-sticky{
    white-space: nowrap;
  }
}

nz-form-control{
  overflow: hidden;
}